package hfdp.chp05;

/**
 * Created by chei on 2016/3/31.
 */
public class SingletonEager {

    // Go ahead and create an instance of Singleton in a static initializer. This code is guaranteed to be thread safe
    private static SingletonEager uniqueInstance = new SingletonEager();

    private SingletonEager(){

    }

    public static SingletonEager getInstance(){
        return uniqueInstance;
    }
}
